package org.budo.weibo.api;

import org.budo.support.http.client.HttpUtil;
import org.budo.support.http.client.Response;
import org.budo.weibo.response.UserShowResponse;

/**
 * @author lmw
 */
public class WeiboUserApi extends AbstractWeiboApi {
    public UserShowResponse show(String accessToken, String uid) {
        final String url = "https://api.weibo.com/2/users/show.json" //
                + "?uid=" + uid //
                + "&access_token=" + accessToken;

        Response response = HttpUtil.get(url);
        return new UserShowResponse(response);
    }
}